#-------------------------------------------------
#
# Project created by QtCreator 2017-07-10T16:31:20
#
#-------------------------------------------------
DEFINES+=D_USE_MOTIONSERVER

QT       += core gui websockets xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = WebServer
TEMPLATE = lib

DEFINES += WEBSERVER_LIBRARY
CONFIG += staticlib
DESTDIR =../../lib


SOURCES +=  $$PWD/echoserver/echoserver.cpp
HEADERS  +=  $$PWD/echoserver/echoserver.h


#SOURCES += filedata.cpp \
#    domparser.cpp \
#    echoserver/echoserver.cpp \
#    testwebform.cpp

#HEADERS  +=  \
#    filedata.h \
#    domparser.h \
#    echoserver/echoserver.h \
#    testwebform.h

#FORMS    +=   testwebform.ui

#contains(ANDROID_TARGET_ARCH,armeabi-v7a) {

#INCLUDEPATH +=  /ws/pkg/untitled5/
#DEPENDPATH +=  /ws/pkg/untitled5/
#LIBS += /ws/build/build-untitled5-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Debug/libuntitled5.so


#    ANDROID_EXTRA_LIBS = \
#        $$PWD/../../build/build-untitled5-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Debug/libuntitled5.so

#DISTFILES += \
#    android/AndroidManifest.xml \
#    android/gradle/wrapper/gradle-wrapper.jar \
#    android/gradlew \
#    android/res/values/libs.xml \
#    android/build.gradle \
#    android/gradle/wrapper/gradle-wrapper.properties \
#    android/gradlew.bat

#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
#}



#INCLUDEPATH +=../EcatCore
#INCLUDEPATH +=../DomParser
#INCLUDEPATH +=../Md5Check
#INCLUDEPATH +=../HmiGsoapQt
#INCLUDEPATH +=../VrepRemoteControlor
#INCLUDEPATH +=../WebServer
#INCLUDEPATH +=../Coordinate
#INCLUDEPATH +=../PointData
#INCLUDEPATH +=../MessageLog
#INCLUDEPATH +=../InternalSafe
#INCLUDEPATH +=../JointDecouple
#INCLUDEPATH +=../MotorInterface
#INCLUDEPATH +=../PalletCalculate
#INCLUDEPATH +=../ControlLoop
#INCLUDEPATH +=../RegData
#INCLUDEPATH +=../TrajectoryScale
#INCLUDEPATH += ../../include/
#INCLUDEPATH +=../MeasureTime
#INCLUDEPATH +=../RobotManager
#INCLUDEPATH +=../RobotEngine
#INCLUDEPATH +=../ProgramEngine
#INCLUDEPATH +=../PowerManager
#INCLUDEPATH += ../../include/MacroDefine
#INCLUDEPATH += ../McControllerInterpreter
#INCLUDEPATH += ../GlobalManager
#INCLUDEPATH += ../RobotiqTool
#INCLUDEPATH += ../../include/modbus



INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH += ../../include/modbus
INCLUDEPATH += ../../include/kdl


INCLUDEPATH +=../ProgramSet
INCLUDEPATH +=../LogicalInstruction
INCLUDEPATH +=../EcatCore
LIBS += -L../../lib -lEcatCore
INCLUDEPATH +=../DomParser
LIBS += -L../../lib -lDomParser
INCLUDEPATH +=../Md5Check
LIBS += -L../../lib -lMd5Check
INCLUDEPATH +=../HmiGsoapQt
LIBS += -L../../lib -lHmiGsoapQt
INCLUDEPATH +=../VrepRemoteControlor
LIBS += -L../../lib -lVrepRemoteControlor
INCLUDEPATH +=../WebServer
LIBS += -L../../lib -lWebServer
#INCLUDEPATH +=../Coordinate
#LIBS += -L../../lib -lCoordinate
INCLUDEPATH +=../PointData
LIBS += -L../../lib -lPointData
INCLUDEPATH +=../MessageLog
LIBS += -L../../lib -lMessageLog
#INCLUDEPATH +=../InternalSafe
#LIBS += -L../../lib -lInternalSafe
#INCLUDEPATH +=../JointDecouple
#LIBS += -L../../lib -lJointDecouple
INCLUDEPATH +=../MotorInterface
LIBS += -L../../lib -lMotorInterface
#INCLUDEPATH +=../PalletCalculate
#LIBS += -L../../lib -lPalletCalculate
#INCLUDEPATH +=../ControlLoop
#LIBS += -L../../lib -lControlLoop
INCLUDEPATH +=../RegData
LIBS += -L../../lib -lRegData
#INCLUDEPATH +=../TrajectoryScale
#LIBS += -L../../lib -lTrajectoryScale
INCLUDEPATH +=../MeasureTime
LIBS += -L../../lib -lMeasureTime
INCLUDEPATH +=../RobotManager
LIBS += -L../../lib -lRobotManager
INCLUDEPATH +=../RobotEngine
LIBS += -L../../lib -lRobotEngine
contains( DEFINES, D_USE_MOTIONSERVER ){
LIBS += -L../../lib -lMotionServer
}else{
LIBS += -L../../lib -lMcControllerInterpreter
}

contains( DEFINES, D_USE_MOTIONSERVER ){
message("WebServer use  D_USE_MOTIONSERVER !")
INCLUDEPATH +=../MotionServer

INCLUDEPATH +=../MotionServer/Axis/
#INCLUDEPATH +=../Axis
}else{
message("WebServer NOT use  D_USE_MOTIONSERVER !")
INCLUDEPATH +=../McControllerInterpreter
#INCLUDEPATH +=../McControllerInterpreter/Axis
INCLUDEPATH +=../JointDecouple
INCLUDEPATH +=../InternalSafe
INCLUDEPATH +=../PalletCalculate
INCLUDEPATH +=../ControlLoop
INCLUDEPATH +=../TrajectoryScale
INCLUDEPATH +=../Coordinate
}

INCLUDEPATH += ../GlobalManager
LIBS += -L../../lib -lGlobalManager
INCLUDEPATH += ../RobotiqTool
LIBS += -L../../lib -lRobotiqTool
INCLUDEPATH +=../ProgramEngine
DEPENDPATH  +=../ProgramEngine

LIBS += -L../../lib -lProgramEngine
INCLUDEPATH +=../PowerManager
LIBS += -L../../lib -lPowerManager

INCLUDEPATH += ../XmlParse
LIBS += -L../../lib -lXmlParse

INCLUDEPATH += ../HmiGsoapQt


#编译中间文件目录
UI_DIR += ../../build/tcrController
MOC_DIR +=../../build/tcrController
OBJECTS_DIR += ../../build/tcrController
RCC_DIR += ../../build/tcrController
